const home = resolve => require(["../pages/home.vue"], resolve);
const button = resolve => require(["../pages/anything/button.vue"], resolve);
const layout = resolve => require(["../pages/anything/layout.vue"], resolve);
const tag = resolve => require(["../pages/anything/tag.vue"], resolve);
const numberKeyboard = resolve =>
    require(["../pages/anything/numberKeyboard.vue"], resolve);
const mySwitch = resolve => require(["../pages/anything/switch.vue"], resolve);
const step = resolve => require(["../pages/anything/step.vue"], resolve);
const rate = resolve => require(["../pages/anything/rate.vue"], resolve);
const countup = resolve => require(["../pages/anything/countup.vue"], resolve);
const popup = resolve => require(["../pages/anything/popup.vue"], resolve);
const rollnotice = resolve =>
    require(["../pages/anything/rollnotice.vue"], resolve);
const datePicker = resolve =>
    require(["../pages/anything/datePicker.vue"], resolve);
const badge = resolve => require(["../pages/anything/badge.vue"], resolve);
const calendar = resolve =>
    require(["../pages/anything/calendar.vue"], resolve);
// Recursive

const Recursive = resolve =>
    require(["../pages/anything/recursive.vue"], resolve);
const TreeMenu = resolve =>
    require(["../pages/anything/treeMenu.vue"], resolve);

let routes = [
    {
        path: "/",
        name: "home",
        component: home
    },
    {
        path: "/button",
        name: "button",
        component: button
    },
    {
        path: "/layout",
        name: "layout",
        component: layout
    },
    {
        path: "/tag",
        name: "tag",
        component: tag
    },
    {
        path: "/numberKeyboard",
        name: "numberKeyboard",
        component: numberKeyboard
    },
    {
        path: "/mySwitch",
        name: "mySwitch",
        component: mySwitch
    },
    {
        path: "/step",
        name: step,
        component: step
    },
    {
        path: "/rate",
        name: rate,
        component: rate
    },
    {
        path: "/countup",
        name: countup,
        component: countup
    },
    {
        path: "/popup",
        name: popup,
        component: popup
    },
    {
        path: "/rollnotice",
        name: rollnotice,
        component: rollnotice
    },
    {
        path: "/datePicker",
        name: datePicker,
        component: datePicker
    },
    {
        path: "/badge",
        name: badge,
        component: badge
    },
    {
        path: "/calendar",
        name: calendar,
        component: calendar
    },
    {
        path: "/Recursive",
        name: Recursive,
        component: Recursive
    },
    {
        path: "/treeMenu",
        name: TreeMenu,
        component: TreeMenu
    }
];
routes = routes.concat([
    {
        path: "*",
        redirect: "/"
    }
]);
export default routes;
